<html>
	<head>
		<script src="../../js/jquery-1.3.2.js" type="text/javascript"></script>
		<script type="text/javascript">
			
			var url = "http://localhost:8080/KiWi/seam/resource/services/sun/search/query.json?";
			
			function run() {
				var input = jQuery("#input").val();
				jQuery.getJSON(url+input+"&jsonpCallback=?",function(data){
					alert(data.results.total+" results for query '"+data.queryStr.query+"'");
				});
			}
		</script>
	</head>
	<body>
		<h2>Sun Search Service</h2>
		<p>
			<b>Possible parameters</b>
			<ul>
				<li><b>query: (REQUIRED) </b>query string</li>
				<li><b>pageSize: </b>number </li>
				<li><b>page:</b> number</li>
				<li><b>order:</b> asc or desc</li>
				<li><b>orderBy:</b> ceq, modified or score</li>
				<li><b>qLang:</b> kwql or kiwi</li>
				<li><b>personal:</b> true or false</li>
				<li><b>recommendation:</b> true or false</li>
			</ul>
		</p>
		<p>
			<b>remarks:</b>
			<ul>
				<li>personTypeItem.ceq is not implemented, because the equityService doesn't provide it yet.</li>
				
			</ul>
		</p>
		http://localhost:8080/KiWi/seam/resource/services/sun/search/query.json?
		<input value="query=" type="text" id="input" style="width:300px"/>
		&jsonpCallback=?
		<button onclick="run()">run</button>
	</body>
</html>